# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgbase=libreoffice-fresh-i18n

pkgver=7.2.1
pkgrel=1
_rcver=${pkgver}.2
#_oodlver=${pkgver}.0.beta1
_oodlver=${pkgver}

arch=('any')
url="https://www.documentfoundation.org"
license=('LGPL')

#https://download.documentfoundation.org/mirrors/all.html

_url="https://download.documentfoundation.org/libreoffice/stable"
#_url="https://download.documentfoundation.org/libreoffice/testing"
#_url="https://dev-builds.libreoffice.org/pre-releases"


#_url+="/${pkgver}-rc2/rpm/x86_64"
#_url+="/${pkgver}/rpm/x86_64"
_url+="/${pkgver}/rpm/x86_64"
#_url+="/rpm/x86_64"

# https://wiki.documentfoundation.org/Language_Teams
# https://wiki.documentfoundation.org/Language/Support

_languages=(
  'af            "Afrikaans"               0'
  'am            "Amharic"                 1'
  'ar            "Arabic"                  1'
  'as            "Assamese (India)"        0'
  'ast           "Asturianu"               1'
  'be            "Belarusian"              0'
  'bg            "Bulgarian"               1'
  'bn-IN         "Bengali (India)"         1'
  'bn            "Bengali"                 1'
  'bo            "Tibetan"                 1'
  'br            "Breton"                  0'
  'brx           "Bodo"                    0'
  'bs            "Bosnian"                 1'
  'ca-valencia   "Catalan (Valencia)"      1'
  'ca            "Catalan"                 1'
  'ckb           "Central Kurdish / Soranî‎ / سۆرانی " 0'
  'cs            "Czech"                   1'
  'cy            "Welsh"                   0'
  'da            "Danish"                  1'
  'de            "German"                  1'
  'dgo           "Dogri"                   0'
  'dsb           "Sorbian: Lower Sorbian / Dolnoserbski" 0'
  'dz            "Dzongkha"                1'
  'el            "Greek"                   1'
  'en-GB         "English (GB)"            1'
  'en-ZA         "English (ZA)"            1'
  'eo            "Esperanto"               1'
  'es            "Spanish"                 1'
  'et            "Estonian"                1'
  'eu            "Basque"                  1'
  'fa            "Persian"                 0'
  'fi            "Finnish"                 1'
  'fr            "French"                  1'
  'fur           "Friulian / Friulan"      0'
  'fy            "Frisian / West Frisian / Frysk / Fries" 0'
  'ga            "Irish"                   0'
  'gd            "Gaelic (Scottish)"       0'
  'gl            "Galician"                1'
  'gu            "Gujarati"                1'
  'gug           "Guarani"                 0'
  'he            "Hebrew"                  1'
  'hi            "Hindi"                   1'
  'hr            "Croatian"                1'
  'hsb           "Sorbian: Upper Sorbian / Hornjoserbšćina" 0'
  'hu            "Hungarian"               1'
  'id            "Indonesian"              1'
  'is            "Icelandic"               1'
  'it            "Italian"                 1'
  'ja            "Japanese"                1'
  'ka            "Georgian"                1'
  'kab           "Kabyle / Kabylian / Taqbaylit / Taqbaylit / Tazwawt" 0'
  'kk            "Kazakh"                  0'
  'km            "Khmer (Cambodia)"        1'
  'kmr-Latn      "Kurdish"                 0'
  'kn            "Kannada"                 0'
  'ko            "Korean"                  1'
  'kok           "Konkani"                 0'
  'ks            "Kashmiri"                0'
  'lb            "Luxembourgish"           0'
  'lo            "Lao"                     1'
  'lt            "Lithuanian"              1'
  'lv            "Latvian"                 1'
  'mai           "Maithili"                0'
  'mk            "Macedonian"              1'
  'ml            "Malayalam"               0'
  'mn            "Mongolian"               0'
  'mni           "Manipuri"                0'
  'mr            "Marathi"                 0'
  'my            "Burmese"                 0'
  'nb            "Norwegian Bokmal"        1'
  'ne            "Nepali"                  1'
  'nl            "Dutch"                   1'
  'nn            "Norwegian Nynorsk"       1'
  'nr            "Ndebele (South)"         0'
  'nso           "Northern Sotho"          0'
  'oc            "Occitan"                 0'
  'om            "Oromo"                   1'
  'or            "Oriya"                   0'
  'pa-IN         "Punjabi (India)"         0'
  'pl            "Polish"                  1'
  'pt-BR         "Portuguese (Brasil)"     1'
  'pt            "Portuguese"              1'
  'ro            "Romanian"                1'
  'ru            "Russian"                 1'
  'rw            "Kinyarwanda"             0'
  'sa-IN         "Sanskrit (India)"        0'
  'sat           "Santali"                 0'
  'sd            "Sindhi"                  0'
  'si            "Singhalese"              1'
  'sid           "Sidama"                  1'
  'sk            "Slovak"                  1'
  'sl            "Slovenian"               1'
  'sq            "Albanien"                1'
  'sr-Latn       "Serbian (Latin)"         0'
  'sr            "Serbian"                 0'
  'ss            "Swati"                   0'
  'st            "Southern Sotho"          0'
  'sv            "Swedish"                 1'
  'sw-TZ         "Swahili (Tanzania)"      0'
  'szl           "Silesian"                0'
  'ta            "Tamil"                   1'
  'te            "Telugu"                  0'
  'tg            "Tajik"                   1'
  'th            "Thai"                    0'
  'tn            "Tswana"                  0'
  'tr            "Turkish"                 1'
  'ts            "Tsonga"                  0'
  'tt            "Tatar"                   0'
  'ug            "Uighur"                  1'
  'uk            "Ukrainian"               1'
  'uz            "Uzbek"                   0'
  've            "Venda"                   0'
  'vec           "Venetian"                0'
  'vi            "Vietnamese"              1'
  'xh            "Xhosa"                   0'
  'zh-CN         "Chinese (simplified)"    1'
  'zh-TW         "Chinese (traditional)"   1'
  'zu            "Zulu"                    0'
)
validpgpkeys=('C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3') # "LibreOffice Build Team (CODE SIGNING KEY) <build@documentfoundation.org>"
sha256sums=('2282d1981e8f78769184e9da8772995f1b6809bda305588e0254bec0da46a61f'
            'SKIP'
            'acf922f6055245721ace0df37c072edfaf53ad7608ec8aa8db36274de3a4d9c2'
            'SKIP'
            'f1cb4444804f4e793c524ada896918bbb7ed5fb057816fc442ef739ec54f7439'
            'SKIP'
            '8f74860f7442ff5b8a6d835509eb6eac2195bcac608aaacdf760970b97a8a5a9'
            'SKIP'
            'aff66be176bf6c411ba6322b82e16e3999e0062a75cd1d9a09f41ed1204db894'
            'SKIP'
            '5e3851b34fecd93cfb6c1106fe6afa85c9e1cbb4896f15315a0e1c134d9757d0'
            'SKIP'
            'a422c987542e711a100e6c779313aa165fc7052d33fb303627b29f923ff713f8'
            'SKIP'
            '27a228414a156940134524379567f22320e549daf1025c0faf6fe086afa796c2'
            'SKIP'
            'c2cf999061338cf05df12c8431af82112184382862816eca55eb15151de26b12'
            'SKIP'
            '65299cc751590d4127fc2e804639cb8eff8ac7cd542379b83e0575cffdca7551'
            'SKIP'
            'b95b1a1ab79fa8f0c3a4412e50db85fed89fa5b56186d6ee528ed018c9d8aaec'
            'SKIP'
            '6eaa79988350f6d02cbf4aa5d965da292cde886ab160f759b6c9ff3794b844b2'
            'SKIP'
            'ccd4033f75a8d5edcbb6059229d67dcca7ce8e73be6618f8a6aba88998a10250'
            'SKIP'
            'ed0963ca2d93e59d93d9ce9f943865eda57ccda99526ab7e768a5042629466b8'
            'SKIP'
            'cefde98dba1d8dbdf01d62c1e354ae9b3309c875ba05ab31021f68df3f7439c0'
            'SKIP'
            '6b0508af3c0d28cc3e97405ce6b5c3e8c23fbd983edec5893d74d7b1eb117c07'
            'SKIP'
            '557090a328b15236b3ae88862e606f89145938824b40d90435250e7fc230ae19'
            'SKIP'
            '257578bf68fed5fafba71a2d4a37f6ebda86da9b70afab1d591e82febec6b360'
            'SKIP'
            '671cfd998f74e2f43da8c1a097b5bedd067e11ccce875583dceb5f5576122fde'
            'SKIP'
            '091a6706542aa8f4e68e019663c94b45df5e185b48abae1ad309e6a5db2ac663'
            'SKIP'
            '3ca4b39c270572fab802a882fed6fe2c8892afe51fb15649899a055092899e53'
            'SKIP'
            '31e00d38d46cc789a696b255d8f4b0107aeacd27258dda82b047ff998437edaf'
            'SKIP'
            '8f79c6aab54acdd28b02fe45fcd9306910acb20f2a3a104f1a5899ff5eee469d'
            'SKIP'
            '06b773e5780db710424593fcae6042674ac5bc0abb4a2659d6565ab0b3f8ed25'
            'SKIP'
            'b344926dfbe5160a7e57cbf47e99c30657f99410c70c01526ac45232b1bd7ca0'
            'SKIP'
            'cc88c6c5c626a0746bd5948d53a6da7570d27311b9ed128c15be59f407135ed3'
            'SKIP'
            '29cfe7e2bd646c30b86c732c8b5a2d444843fdd091055231b9214249351093b1'
            'SKIP'
            'dccc7c6f95178642f4143d33d77b6add67dea14e93fb1ca8f653fe19274aac57'
            'SKIP'
            '1e3a126b515c97fb5650192b006cc99f9b9dfe7c42123104793ef301e12d7392'
            'SKIP'
            '4f709b5c4227c5d1821e381f00e201456cb897c4cbbc78320dee377b8193b9b2'
            'SKIP'
            '59927dd3318f42114ffd90ec166095d300851178a3b6dcb9ef187e182c554dea'
            'SKIP'
            'b1bf2104adf09df932bd694d33879a0eb71346c59c3cf852cd96aedf56004305'
            'SKIP'
            'f5387b8df47d4a4b1e4baed21eab075281b894ae4308ed49fbeb81bf89d29579'
            'SKIP'
            '09ce052e5421b406a32fadf95671835d457bc127b086ec127f369af0cd3fb439'
            'SKIP'
            'dc1743d3a09fc573f3ce0935f57a26205e34c23531d26618297020156a11e5eb'
            'SKIP'
            '516a29c241246b3ed5897d791575f6b280b1836cec4c97c514fd051b95986cfa'
            'SKIP'
            '12469dc72efb1aa270080927f5f4f5132574cb1a9aa72b06f9b8102ab1667f0f'
            'SKIP'
            'c7dc287b85c2f0e3444b495ba5ef8d5395a0a6cb7908a3803513a1c963397dac'
            'SKIP'
            '8443e37506c21300a0fd9e30e78c80b9bce35a3b2e7c6842247d4a59094af487'
            'SKIP'
            '292de146859542fb180ca0dfcda38022aabce4625fc04ce4fa16c53c58dbea74'
            'SKIP'
            'b898ea0e422fcf54d3e2a83ebbb02b5a5c3d93f6ad6801896dac3e10053794db'
            'SKIP'
            '975d899ecb525f140bb3e6c21c7d9fdf214899a4cc866e811b2e948cab920800'
            'SKIP'
            'b0931d1b05b3aeceedadc677fec570e5acca59fbaa3a01904442256aab55f2e7'
            'SKIP'
            '4bd3cb34a679632a564ad4a235883a9f264391dda6c9f427655d16e65aa30243'
            'SKIP'
            '3f2087a65f644701f4f6db1b1d68638ba400b0e600875d3201d14193cb1e8d0b'
            'SKIP'
            'a2cf86f03b74d8a1223a506a0c884d522030a30a237d5865d2b468660ad90af3'
            'SKIP'
            '3d6e4e78de07e489dcf4e77b6735a1d7322a77636b945dc7236518dc0f9b52bb'
            'SKIP'
            'a8fca2ef54be62624b34ef71df66aa73b9484e327eb2d0f88fb66bf844a1c747'
            'SKIP'
            '1e5900ede1614b974efd5bb34fac675ad74055d49561e4365707b969c3a6a932'
            'SKIP'
            'c5e667ef4d9b18848b54d7b51894f1da47bee7584f796e60268eaa01979711d5'
            'SKIP'
            '2c6a3022b58fec9f4b3cc67cb843db9fda5a635e94a25a097c196234d2114f09'
            'SKIP'
            'b2e5b95ab0f262ad3c3daddd4ebbacb5396bc4e2bb9891fb48f409690a88fb1a'
            'SKIP'
            '3cc2b119715b8c87df156babd6d33794c27e5ab9205815683fcc851b3664e52d'
            'SKIP'
            'b9e48f9fb610735be1c0b9fa1dc232dd23ca16965bb02df57e92310fbb537556'
            'SKIP'
            'd0a049d5faff2f10ed0f74db9846a0c0b8fbd5f8995de3d3e4caf1b407a77283'
            'SKIP'
            '4f12a3bcfd02d8618cefa00a604844f725b3c8a343e796eb2cf140cae27486b4'
            'SKIP'
            '91dd6e03bb716c3315a8f29df08289ee0dee613d2c2c179886dde8445bf9d16c'
            'SKIP'
            'a024d760d0dc88fbdf82f7c1a89ccdbfdfb832742bde3303d88015434013765e'
            'SKIP'
            'da8c3967e971c670a3cb56d044ff53ffb42a72861337897876226853e079c341'
            'SKIP'
            '0b8c9ce368973523ced63cc54b1bae843fabc9ba44273602319b80b32758ed37'
            'SKIP'
            '2926a5ad5b25f55c9b09e623079cd70e53226e894b20f9282a33c58f5f1b2506'
            'SKIP'
            '35c1f5666f91a73477832f328f501e5b3ad97d5425d3a0a4334f15399d5d9bf4'
            'SKIP'
            '02456050a23468f2bec860479e6adb9cfd5ba911a350953c5fd858e16d1f0f77'
            'SKIP'
            'e3e2aa1c6c7031fa445e43489e9fbfa111a1e4f7f533f20c8b25d9f84cb2cb30'
            'SKIP'
            'a5b4671f23d10f1b144884d7702cb41cbc79afe1fd4056fdf33cbd1553231766'
            'SKIP'
            '7e5a9abcba63e9355c5896e4d345681c432a2ce2e70c0a684433f54829148808'
            'SKIP'
            'ead4548f00fcc50f561ae3f712d7ca27580832983bd12f24eb3fbef4b76ef83d'
            'SKIP'
            '058acbf566a0898d63cb3c361699de52b1df69057aba54e000f30b9167bd1c8d'
            'SKIP'
            '3a4e8164b45d32b87fb43eecf6a14d658ebce24f80d764b911ec34fee2417da5'
            'SKIP'
            '063a0a43bfd24a93f5af6b80160de37268bd5883c94107f7a500be1cebe87c1c'
            'SKIP'
            '949531ee20dbf1226c3297e8dbf8c02dfe769e6a2fd874817fc9a653f964fc26'
            'SKIP'
            '91deea5812f5e219da222c39848d0dafba6164e2303b75a9f56bea99a94d36e5'
            'SKIP'
            '727d0ea3e6937bf5cdd30472b89909e992c4bfe1bc12d538a13df609f0aa00de'
            'SKIP'
            '935b58fc631e74cdd59182a6c24802e8d6a671b7fe3cb1e0eb0c00d576f4d268'
            'SKIP'
            'bf5aaad7deebec0c223200003474ea12618128300f9c9528e7e6fbce1cd12c97'
            'SKIP'
            '8f25c3b971855b5abed9684e4214b35af2578640b4f179607cedb844158e87e6'
            'SKIP'
            '0a03d7afd1c00b973c1c888154704c7348379aa744045e96209cd1ddb982c0db'
            'SKIP'
            '7cef498e8ea24afeec6e473561b7e4c65a9394b69508b87261531aa6258eaabe'
            'SKIP'
            '46b3c00154f1b9562b2279d757500fd949d12a8e15b4c7a85c920af9dc75b731'
            'SKIP'
            '66274314f8f87c27c3c74eb1a6e31f3efd49d45eef70599b7c3655fbcdd34913'
            'SKIP'
            'e0d39f865f9427c991f1baf8d1f4f802a6fee0ab6f17a4d0a2d4307dd8757fa5'
            'SKIP'
            '1645649a17511e412b394d5a5f0698fc8ad20cb75fea80462d5118d57dfc9361'
            'SKIP'
            '5402d4e00f20ac0c0b95f6d0909498305953f9d5763203332c48f88cf7e2c384'
            'SKIP'
            '49e3afb3790e9615831941bf0032dd35d362bbe9771b41232c9732159eb25b40'
            'SKIP'
            'd13b69ac81aad6172ee2b48d3b27141efb4ea5a4fe19aa3aae50b146c0e67402'
            'SKIP'
            '283b7d7be3a54d94519b1dfd53fd534fd65e4141c1d0b07be2b12c8b4949d387'
            'SKIP'
            'a833b91cd5d2b0f1b16fe592a1392be703df83abee9a2661529a5a8eea5f8289'
            'SKIP'
            '2d4eccd5e23b5674e743741099a17931d81cef262acb5b7a49cdc7e4fdf3f819'
            'SKIP'
            '9b09a82039f3a5ddad274ef13742d50f975d19d9a77d447005193c2a98a25c29'
            'SKIP'
            '3b56c1cd5d9af311ff5db8dffe1f959ade2765c9d79a6c059aadb77edb160935'
            'SKIP'
            '7c0e52bef9fcf9a5e7af62b1e858404a947be75e1ff26adfad2d6ad868a184d8'
            'SKIP'
            '3b488ed9f4b35994e0b38fe3e8f4205e24e5b1ebae597cc6d22ee5b071cd622c'
            'SKIP'
            '5fe3a9637b548eaee1089cc100de824a0aee02eb4cf251008775e30c2867b801'
            'SKIP'
            'c033113e91c501a4dfa78ac41fc3c20839d8bf444da64211facfad28882efbfc'
            'SKIP'
            '4330c373dd7236252c4fb3437a31f105610e1581324da61b32d8e343e895bf48'
            'SKIP'
            'ecf8cb5b91941f3e236b6eb613c80873acc0d28c39d83206f4401719eabde6c5'
            'SKIP'
            'd3edd982c2036402de1b73896da3310483e1c904c5ef7fa584c330d42d2ed1ba'
            'SKIP'
            '569d1afed85f38851b0b6f1d13fc78c3dbf582c904a7c4b8e93c7b113bf8977b'
            'SKIP'
            '3d745b878f6a58494257388b9e106b843d255bfbfd00e4b46bc4a4c940fe5509'
            'SKIP'
            '19583551f49edda07a21ccaa079da64cd10dec313ff70a750ba30811009179ef'
            'SKIP'
            '569204029a9f5c4295221c6b7b1a9580aefbbaa646fd4539e80bbf9519cc5534'
            'SKIP'
            '50881ae7012a5495902c9e3c7f2745c25f5a4a00efe0eefdc07e62c01c2fb8af'
            'SKIP'
            '30d741683b6f8a3a78d407d1f523df12310faa33426332b339debf79c83890a7'
            'SKIP'
            '91cd73d1ffc23285cddc76739b0be1f004aeeab8ea5d2541e2ae2b196f878eb0'
            'SKIP'
            'e589fa08da272a64665bf1f7828a46cdddcd16ba8d38c2e3583dc7618a4530ac'
            'SKIP'
            '448108b533a8b9934b21e153de1c9e3d5e65306817fab44c2a539bb33e90a637'
            'SKIP'
            'a7b373b24de29947b4cccbe215c36b9b7becb6c7be759e0856391fee67e8ea64'
            'SKIP'
            '376b825920100608a03f36576242f1cfccbc7ce0a9bee208629079b32984e507'
            'SKIP'
            '9cc598455792d5aa3450db3759f49cb57d09e04494cebc4f1c2594342903a65b'
            'SKIP'
            '8330b8c98601409623619a7f473d6aa425a1bacd886b2d407d889dd1315bb8c0'
            'SKIP'
            'd4406523b5fefe98c5993c60becb4b03a7e17285d8242f71cfa024091c52c711'
            'SKIP'
            'defcfccb62b932122a1c87cb4989670bb28707609ac26a0db603ddac434ffcb8'
            'SKIP'
            '290913dd8d9ac316435cd66e1529d6d388737ccb786aa2876f24eb9f9bce8522'
            'SKIP'
            'f3a686a106048eba752a0589a12394beca3ff98a492ec768b06798828faece7e'
            'SKIP'
            '0c24d7f1e1bc3b5a7a77f328a4c7ada0864095feee816ca248400ab82053265b'
            'SKIP'
            'f4695b1fe9a50a713d7539bf3d7379392c51dda1f8ae2b6e0e8b6743a43fca28'
            'SKIP'
            '6ab397db37e6230dcb14d4f31ed4079e892c88199c6090705338a11d4acc784f'
            'SKIP'
            'e1b203a405b1c08857acaa0441d546e19548f5f82df0ca5f91d34123800f9027'
            'SKIP'
            'e7cf12c03cefc830bc10a14c9319373917ae38bb6023faf281b6121e8d8cb289'
            'SKIP'
            'a5726f64624260adc0307a2bcbfcd12c2d3713d64efdab53d44c006c426e5cec'
            'SKIP'
            'a451e656eedc161d57f9f61cf450cf0b25cb4bb317728cb4ec71c648320a8cbe'
            'SKIP'
            'bc54865c388b37c6c4b11534dbf7ee2e4846125f074ee797afc746271f1f0af7'
            'SKIP'
            '70a93401ef4e1abf6bd3f31aa94a71666a3cebbfe2ced9490046e568d2c8eea1'
            'SKIP'
            '34db691eed51f8ae20bc1190a3409b56e6ff119ac15647750fef15b26f9ea115'
            'SKIP'
            'f61fbbc76957021829da3c9a7b50247a359f8da322eaada46a1658ffa07d06a7'
            'SKIP'
            'e7c153be9b351f2b29d2b6be523d586ef468a5f088cf91ff42b0ba52dbc6586f'
            'SKIP'
            '0c79cbfd2096da3c4e494ec3f54c4896c3c66c7baf271d993fdd730fffd3f554'
            'SKIP'
            '004a59583ef9d3d0987829bc0027358b52f04c6335b669b312106373ea2724c1'
            'SKIP'
            'd771b42989c9da45ce7d397adba8ce06264e4375fbde9193b9fb479e76f9c64c'
            'SKIP'
            '15c2b74bf6b240195e10d283b224e32675788a97f8110c69bee6e4f22091b047'
            'SKIP'
            '39f20d2cf57aa6889fd526e3fbf9e0f7c132e943be9fffd5b67383be9c574fa9'
            'SKIP'
            '9d4ad212bdd37290e2d77d8006c607725bdd2b7d437ffa0ffc55ac527d0fb975'
            'SKIP'
            '79b5aa4ed8e30e4b4e3e075d265d8ba01ac8f5a69e6bf1284173de8e6679ea9c'
            'SKIP'
            '8fed72311c555d01ec49380a396944c71dff05be5449c0705faa5512069b5035'
            'SKIP'
            '57f93c32c2ca1aede9f9d86136a9a37bae90726907982eddaf1fe121dd2cafa1'
            'SKIP'
            'f8d64cdb21391c52e288e6822c606b89322b6e35f47ad5d38722e7fd9c796518'
            'SKIP'
            'cf7ccad5ca020fc50ea25ee47b7ee5dd714a6bf3f806aeffc97f65303743dbca'
            'SKIP'
            'ab7200de844e2475458328876e05e6b74d819cb3f0296e4d6aed82a9a9e2eb84'
            'SKIP'
            'e8629f124fcff37c43ab8ad7ab153d759bf59ef9b04741929122449536b456cf'
            'SKIP'
            '8da78194d5b86bb871f72b64942e54c402b898afc656ccfff1749c667af02456'
            'SKIP'
            '238bb19169f60ce55be1cfc796353d6018d5cd3311ec3847ad6810e554fb9cdf'
            'SKIP'
            'e190ba9e5080e426797b958e0ced245c6bc548bf3bfb8925981e5480adaf49c2'
            'SKIP'
            '00772e5e31601c4cdd63c53ebac2a082513b8813f11166a64f9cea66fda565bf'
            'SKIP'
            'ac85a576608ebd8279d44ec9e3e3fe420b0e6d0145e76d7c15a5017e048caa73'
            'SKIP'
            'debb840700f206e686e12245aac6f1b4973878402a533d35d331012f85cd4793'
            'SKIP'
            'cb1b2b2a82ab99260fa1be82ab46a442055d00f50e65c58c902c405dec6ae53b'
            'SKIP'
            '2aae0d68978a5edd8f99cf2a36d2e2859c67615956596860aed1171576f523d2'
            'SKIP'
            '0061b4de8135a89974d07a4bb946ae55de1e77151b8ae4110c9871be517f2ebb'
            'SKIP'
            'f7fc11b6f5eaa3b1c96835bdafee085d78796d3545028b7cf8e02a8fca80c72c'
            'SKIP'
            '6a82b148e89a3f449695ae85f737b0ebaf20178f2fd93b1001ee6b2e7e266324'
            'SKIP'
            'e4698939c68cc50affe0c0ce3df8cd5b5c633f4cd2f877f492333a458b98209e'
            'SKIP'
            '693a763cd6e76b3a1fae681fcbaec3fcef2ba3a5eed624fd02a24e671493bfa5'
            'SKIP'
            'df345e290b2666110a458abc3b17c4a4c497a615af39846261d9a525d7568ac3'
            'SKIP'
            '4097feead221acf164f33c054fcff303553035d75d87d7fe113e2fbdb4a57aee'
            'SKIP'
            'b63d842ad185c74e9cf2bfe722369bce28d8df9fd35e0a0c20cbd6a9847093e9'
            'SKIP'
            '7301dbd4ac80bbc33ddbc0b77895a33a0681ad81ddbd516a187be7a6c480c1c2'
            'SKIP'
            '10b3c14efc7842805bc14aa6003cbae92edf3618dff1399865529d72ff4ecbfc'
            'SKIP'
            'd2168b0b086f3a967a0cdb67eeb396159c447ccadd669b2ac7ec69b60d9619e5'
            'SKIP'
            'f80905a96d15300db26589102570bea3e78ab1d4ef59faf8c9cf9d7f4465a385'
            'SKIP'
            '0ac044ea4f11511ace92a2658b190f78ee3064d985c3d2a1a2e59792dacdd09d'
            'SKIP'
            'b888fc4f430ab8b57bef49f5e682460df349e60d89d442e384a14d8b8cb1e3f1'
            'SKIP'
            '60d871d7a67a0a345b38096732f16090b4144fa344e16404e3809ad3493da83f'
            'SKIP'
            '6bc194ce8c1426b30898ede7372ea4268110932ca08659bd8f01a82cdeea9641'
            'SKIP'
            'b9cf41419c3e20dac11375d4b80901e5b6968735805228a163783b8f14515810'
            'SKIP'
            '7bd04f48aa3f4901e4a9035bb67b6206891f89170e73b98c99d8e487090a31cd'
            'SKIP'
            '37bffdcc16267ad0a85bc7bf4adcc880f08cf36f6bccc0ccd40d878cdba770d4'
            'SKIP'
            '85b0c5dc107216e1fd9984e616d82a477df7361aa0002525ad41eac25ee6a99e'
            'SKIP'
            'f33ef90758e38c133640e646293f270ac96d1df6a6a8c655c3c6c4681833a908'
            'SKIP'
            '39a1f327317913b71a25c4a19646f97b30a2b5402742c1f7748e208d2926a58f'
            'SKIP'
            '9893b693226684c3892167dd81ac5d38a3b7d1de2d7f44beb29d23f4acd1f7f2'
            'SKIP'
            '1e94fc9105703764ef89154738f2ddc5836dcba1b5416c4fe2c25656f9d360b9'
            'SKIP'
            '1a73793e3fdf53f5b1151f924daad94eec8253ffc63331d7d127053735e6416d'
            'SKIP'
            '9e9298601778f9a860fd8708c3f80b72b0a59122fc7b33958c1051cc253377be'
            'SKIP'
            'aeeead5a0045dd82ad909e8db66c8e1742e7f0f260d9303220406c9738bf36d1'
            'SKIP'
            '330716f29d44d14f0050df52be5fc8e2f9134821d1a7fdd4709c54a2a5ea67d1'
            'SKIP'
            '5b0832c805cfc560faeed9940850e538ee6addad4a66e5ee318494a690bb3176'
            'SKIP'
            '8292129d25c3100ea2d3831d388d83d72f3a0a2da272cd33d107feca778e0bca'
            'SKIP'
            '514e683377579b8e238d42f1d07cafb77e64cba6086c8669c50971ad75409efa'
            'SKIP'
            'c6a812892c51d94b3f4cf25990a8ee768707b81423f23b310dc392512ba2ad51'
            'SKIP'
            '27bc310eb7be4108f434c534485816461c1b1d98c53854fda3f9236c96ede699'
            'SKIP'
            '3de3b10cd1ea71e31720e88a52a88b025964494100057b3f8abd6fe178be32d0'
            'SKIP'
            'aa626328505f2cdcd656a68ae3c6ee2550a63a9bef8f4d1370a474e061faa193'
            'SKIP')

prepare() {
  for _lang in "${_languages[@]}"; do
    declare -a "_langa=($_lang)"
    _locale="${_langa[0]}"
    _helppack="${_langa[2]}"

    echo ${_locale} " unpacking..."
    cd "${srcdir}"/LibreOffice_${_rcver}_Linux_x86-64_rpm_langpack_${_locale}/RPMS

    # remove dictionaries if shipped - we ship them now in separate packages
    rm -vf *-dict-*.rpm || /bin/true

    for j in *.rpm
      do bsdtar -x -f $j
    done

    # the helppack rpm goes also into the langpack dir
    if (( $_helppack )); then
      bsdtar -x -f "${srcdir}"/LibreOffice_${_rcver}_Linux_x86-64_rpm_helppack_${_locale}/RPMS/*.rpm
    fi
  done
}

_package() {
  pkgdesc="$2 language pack for LibreOffice Fresh"
  depends=('libreoffice-fresh')
  provides=("libreoffice-$1")
  conflicts=("libreoffice-$1")
  if [[ $1 != ${1,,} ]]; then
    replaces=(libreoffice-fresh-$1)
  fi

  cd "$srcdir"/LibreOffice_${_rcver}_Linux_x86-64_rpm_langpack_$1/RPMS
  mkdir -p "$pkgdir"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "$pkgdir"/usr/lib/libreoffice
  chown root:root -R "$pkgdir"/usr/lib/libreoffice
}

for _lang in "${_languages[@]}"; do
  declare -a "_langa=($_lang)"
  _locale="${_langa[0]}"
  _helppack="${_langa[2]}"
  _pkgname=libreoffice-fresh-${_locale,,}

  pkgname+=($_pkgname)
  source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86-64_rpm_langpack_${_locale}.tar.gz{,.asc})

  if (( $_helppack )); then
    source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86-64_rpm_helppack_${_locale}.tar.gz{,.asc})
  fi

  eval "package_${_pkgname}() {
    _package $_lang
  }"
done
